# -*- coding: utf-8 -*-
"""
Created on Wed Jan 16 16:17:25 2019

@author: 89580
"""
import socket 
ss = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
ss.connect(('127.0.0.1',8888))

ss.sendall('Be271b&three&Macintosh Chrome Safari&192.168.89.177&2358704&小米发布会&0&7')
#os.system('sleep 1')
ss.send('EOF')
data=ss.recv(1024)
print ("server's response : %s " % data)
ss.close()